﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Management/ChargeNurse/ChargeNurse.master"
    AutoEventWireup="true" CodeFile="Nhansu.aspx.cs" Inherits="Management_ChargeNurse_Nhansu" %>

<%@ Register Src="../PersonnelOfficer/StaffInfor.ascx" TagName="StaffInfor" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <style type="text/css">
        .tbHeader
        {
            vertical-align: middle;
            text-align: left;
            border: 1px;
            height: 40px;
        }
        .tbCell
        {
            vertical-align: middle;
            text-align: left;
            height: 20px;
            border: 1px;
        }
        .table2
        {
            height: 199px;
            padding: 10px;
        }
        .table td
        {
            vertical-align: top;
            padding: 10px;
        }
        .style2
        {
            width: 208px;
        }
    </style>
    <asp:Panel ID="Panel1" runat="server">
        <table width="100%" class="table2">
            <tr>
                <td style="width: 270px; vertical-align: top">
                    <asp:Panel runat="server" Style="vertical-align: top" Height="405px">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="nhanvienDS"
                            Width="263px" CellPadding="4" ForeColor="#333333" GridLines="None">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:TemplateField HeaderText="Họ và tên">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="Label1" runat="server" Text='<%# Eval("FirstName") +" " +Eval("LastName") %>'
                                            OnClick="nhansu_Click" CommandArgument='<%# Eval("ID") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="tbCell" />
                                    <HeaderStyle CssClass="tbHeader" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Chức vụ">
                                    <ItemTemplate>
                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="tbCell" />
                                    <HeaderStyle CssClass="tbHeader" />
                                </asp:TemplateField>
                            </Columns>
                            <EditRowStyle BackColor="#2461BF" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>
                        <asp:SqlDataSource ID="nhanvienDS" runat="server" ConnectionString="<%$ ConnectionStrings:HOSPITALMANAGEMENTConnectionString %>"
                            SelectCommand="SELECT tbStaff.[ID], [FirstName], [LastName], tbPosition.[Name] FROM [tbStaff] INNER JOIN tbPosition ON tbStaff.[IDPosition]=tbPosition.[ID] WHERE ([IDWard] = @IDWard) ORDER BY [IDPosition]">
                            <SelectParameters>
                                <asp:FormParameter FormField="IDWard" Name="IDWard" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </asp:Panel>
                </td>
                <td>
                    <asp:Panel ID="Panel2" runat="server" Visible="false">
                        <uc1:StaffInfor ID="StaffInfor1" runat="server" />
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
